﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DisputeDetail.aspx.cs" Inherits="UI_Bas_DisputeDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>投诉明细</title>
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    
    <script type ="text/javascript" >
	 $(function() {          
       $("#divContent").panel({
           width:670,
           height:640});
           var id=$("#tid1").val();
           var id2 = $("#tid2").val();
           var defaultDate = Date.parse('1900/01/01');
        $("#ebayDisputeMessage").datagrid({        
            border: true,
            height: 130,
            title: '投诉明细...',
            remoteSort: false,
            nowrap: true,
            striped: false,
            url: "../../TableHanders.aspx?act=q&tid=09&type=0&id=" + id + "&id2=" + id2,
            sortName: 'DisputeID',
            sortOrder: 'desc',
            loadMsg: "正在加载,请稍后...",
            
//            toolbar:[{
//                    text:'Add',
//                    iconCls:'icon-add',
//                    handler:function(){                                                         
//                       //  window.location.href="DisputeMessageDetail.aspx?act=I&id=" + id + "&id2=" + id2; 
//                         window.showModalDialog("DisputeMessageDetail.aspx?act=I&id=" + id + "&id2=" + id2, "", "dialogHeight:245px;dialogWidth:435px;edge:Raised;center:Yes;help:No;resizable:no;status:no; scroll:no;location=no;");                 
//                    }                    
//                   }],
            frozenColumns: [[
                    { title: 'EbayUserId', field: 'EbayUserId', width: 90 },
                    { title: 'DisputeID', field: 'DisputeID', width: 90 }
				    ]],
	                columns: [[
	                { title: 'MessageID', field: 'MessageID', width: 90 },
	                { title: 'MessageSource', field: 'MessageSource', width: 80 },
	                { title: 'MessageCreationTime', field: 'MessageCreationTime', width: 120, formatter: function(val){
	                    var d = Date.parse(val.replace("-", "/"));
	                    if (d == defaultDate) {
	                        return "";
	                    }
	                    else {
	                        return val;
	                    }
					  }
	                 },	                
	               { title: 'MessageText', field: 'MessageText', width: 300 }	                             					
				]],
            rownumbers: true,
            singleSelect: true
        });
     });
  </script>
  <style type="text/css">
        #divContent input
        {
    	    width:500px;
        }
  </style>
</head>
<body>
<input type="hidden"  id="tid1" runat="server"/>
<input type="hidden"  id="tid2" runat="server"/>
<div id="body" style ="margin-top :5px"> 
   <div id="divContent" class="easyui-panel" runat="server" title="投诉信息浏览...">
     <form id="form1" runat="server">
        <table >
             <tr>
                <td >EbayUserId:</td>
                <td ><input type="text" id="txtEbayUserId" runat="server" readonly="readonly"/> </td>
             </tr> 
             <tr>
                <td >DisputeID:</td>   
                <td ><input type="text" id="txtDisputeID" runat="server" readonly="readonly"/> </td>               
              </tr> 
             <tr>             
                <td >DisputeRecordType:</td>               
                <td ><input type="text" id="ddlDisputeRecordType" runat="server" readonly="readonly"/> </td>                 
              </tr>                           
             <tr>
                <td >DisputeStatus:</td>               
                <td ><input type="text" id="ddlDisputeStatus" runat="server" readonly="readonly"/> </td>                  
              </tr>
              <tr>                                       
                <td >OtherPartyRole:</td>
                <td ><input type="text" id="txtOtherPartyRole" runat="server" readonly="readonly"/> </td>    
              </tr>             
              <tr>                                       
                <td >OtherPartyName:</td>
                <td ><input type="text" id="txtOtherPartyName" runat="server" readonly="readonly"/> </td>    
              </tr>
              
              <tr>                                       
                <td >UserRole:</td>
                <td ><input type="text" id="txtUserRole" runat="server" readonly="readonly"/> </td>   
              </tr>             
              <tr>                                       
                <td >TransactionID:</td>
                <td ><input type="text" id="txtTransactionID" runat="server" readonly="readonly"/> </td>    
              </tr>            
               <tr>                                       
                <td >DisputeReason:</td>
                <td ><input type="text" id="txtDisputeReason" runat="server" readonly="readonly"/> </td>   
              </tr>
              <tr>                                       
                <td >DisputeExplanation:</td>              
                <td ><input type="text" id="txtDisputeExplanation" runat="server" readonly="readonly"/> </td>   
              </tr>  
               <tr>                                       
                <td >DisputeCreditEligibility:</td>      
                <td ><input type="text" id="txtDisputeCreditEligibility" runat="server" readonly="readonly"/> </td>   
              </tr>
              <tr>                                       
                <td >DisputeCreatedTime:</td>
                <td ><input type="text" id="txtDisputeCreatedTime" runat="server" readonly="readonly"/> </td>    
              </tr>
              <tr>                                       
                <td >DisputeModifiedTime:</td> 
                 <td ><input type="text" id="txtDisputeModifiedTime" runat="server" readonly="readonly"/> </td>   
              </tr> 
              <tr> 
                <td >OrderLineItemID:</td>
                <td ><input type="text" id="txtOrderLineItemID" runat="server" readonly="readonly"/> </td> 
              </tr>            
        </table>
        </form>     
     <table id="ebayDisputeMessage"></table>
     <div style="display:block; width:645px; text-align:right;margin-top:5px;">       
            <a href="#" class="easyui-linkbutton" icon="icon-cancel" onclick="javascript:window.close();">Close</a>
       </div> 
    </div> 
 </div>
</body>
</html>
